import request from '@/utils/request'

// 查询成员基础信列表
export function listMemberDevice(query) {
  return request({
    url: '/zyx/memberDevice/list',
    method: 'get',
    params: query
  })
}

export function listManageMember(query) {
  return request({
    url: '/zyx/memberDevice/listManageMember',
    method: 'get',
    params: query
  })
}

// 查询成员设备信息
export function memberDeviceTreeselect(memberid) {
  return request({
    url: '/zyx/memberDevice/memberDeviceTreeselect/' + memberid,
    method: 'get'
  })
}
// 查询成员基础信详细
export function getMemberDevice(id) {
  return request({
    url: '/zyx/memberDevice/' + id,
    method: 'get'
  })
}

// 新增成员基础信
export function addMemberDevice(data) {
  return request({
    url: '/zyx/memberDevice',
    method: 'post',
    data: data
  })
}

// 修改成员基础信
export function updateMemberDevice(data) {
  return request({
    url: '/zyx/memberDevice',
    method: 'put',
    data: data
  })
}

// 删除成员基础信
export function delMemberDevice(id) {
  return request({
    url: '/zyx/memberDevice/' + id,
    method: 'delete'
  })
}
// 批量添加成员设备信息
export function addMemberDeviceIds(data) {
  return request({
    url: '/zyx/memberDevice/addMemberDevice/',
    method: 'post',
     data: data
  })
}

// 导出成员基础信
export function exportMemberDevice(query) {
  return request({
    url: '/zyx/memberDevice/export',
    method: 'get',
    params: query
  })
}
